Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Austenem/CAT-872 improve redirect toast #3556

Merged
merged 5 commits into from
Oct 7, 2024

Conversation

austenem
Copy link
Collaborator

@austenem austenem commented Oct 3, 2024

Summary

Update Unified View redirect toast to be more informative with the processing type and HuBMAP ID of the redirected dataset.

Design Documentation/Original Tickets

CAT-872 Jira ticket

Testing

Manually checked toast for several raw and processed datasets.

Screenshots/Video

Screenshot 2024-10-03 at 6 10 29 PM

Screenshot 2024-10-03 at 6 11 12 PM

Checklist

  • Code follows the project's coding standards
    • Lint checks pass locally
    • New CHANGELOG-your-feature-name-here.md is present in the root directory, describing the change(s) in full sentences.
  • Unit tests covering the new feature have been added
  • All existing tests pass
  • Any relevant documentation in JIRA/Confluence has been updated to reflect the new feature
  • Any new functionalities have appropriate analytics functionalities added

Comment on lines 13 to 14
redirectedFromId?: string;
redirectedFromPipeline?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .get without a second argument will resolve to None if the key isn't present and will then be null once converted to json. The types here should be ?: string | null.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it - is this preferable to providing a false second value to .get?

@austenem austenem merged commit c4bb547 into main Oct 7, 2024
8 checks passed
@austenem austenem deleted the austenem/cat-872-improve-redirect-toast branch October 7, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants